﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarShop.Domain.Interfaces;

namespace CarShop.Data.EntityFramework.Interfaces
{
    public interface IQueryableUnitOfWork : IUnitOfWork
    {
        IDbSet<TEntity> CreateSet<TEntity>()
            where TEntity : class;

        void Attach<TEntity>(TEntity entity)
            where TEntity : class;

        void SetModified<TEntity>(TEntity entity)
            where TEntity : class;
    }
}
